<template>
  <div>
    <el-menu
        :default-active="activeIndex2"
        class="el-menu-demo"
        mode="horizontal"
        @select="handleSelect"
        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b"
        style="display: flex; justify-content: space-between; align-items: center;">

      <el-menu-item index="0">
        <el-avatar :src="require('@/assets/images/logo/logo.png')"></el-avatar>
      </el-menu-item>

      <el-menu-item index="1">
        <router-link to="/home">首页</router-link>
      </el-menu-item>
      <el-menu-item index="2">
        <router-link to="/jobs">岗位</router-link>
      </el-menu-item>
      <el-menu-item index="3">
        <router-link to="/resume">简历</router-link>
      </el-menu-item>
      <el-menu-item index="4">
        <router-link to="/learning">学习</router-link>
      </el-menu-item>

      <el-submenu index="55" style="margin-left: auto;">
        <template slot="title">我的工作台</template>
        <el-menu-item index="2-1">个人中心</el-menu-item>
        <el-menu-item index="2-2">投递进度</el-menu-item>
        <el-menu-item index="2-3">我的简历</el-menu-item>
        <el-menu-item index="2-4">我的消息</el-menu-item>
        <el-menu-item index="2-5">推出登录</el-menu-item>
      </el-submenu>

    </el-menu>



  </div>
</template>

<style>
</style>

<script>
export default {
  name: "frontHeader",
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>
